package com.yuhao.server.service.impl;

import com.yuhao.server.entity.ServiceBTest;
import com.yuhao.server.repository.ServiceBTestRepository;
import com.yuhao.server.service.ServiceBTestService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ServiceBTestServiceImpl implements ServiceBTestService {

    @Resource
    private ServiceBTestRepository repository;

    @Override
    public void addTest(ServiceBTest aTest) {
        repository.save(aTest);
    }

    @Override
    public List<ServiceBTest> findAllTest() {
        return repository.findAll();
    }
}
